<?php

namespace app\admin\server\entity;

use app\admin\model\entity\EntityStageNameLogoTypeModel;
use app\admin\ServerBase;
use app\admin\validate\entity\EntityStageNameLogoTypeValidate;
use think\Request;

class EntityStageNameLogoTypeServer extends ServerBase
{
    protected $model;
    protected $request;
    /**
     * @var mixed
     */
    protected $param;
    /**
     * @var mixed
     */
    protected $validate;

    function __construct(Request $request)
    {
        $this->request = $request;
        $this->param = $request->param();
        $this->model = new EntityStageNameLogoTypeModel();
        $this->validate = new EntityStageNameLogoTypeValidate();
    }

    function getTree(){
        $result = $this->model->getTree();
        $this->getMessageCode('adminMessage.success.select',2);
        return $result;
    }
}